package day4.zy2;

import java.io.File;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("源文件");
        String s = input.next();
        System.out.println("目标文件");
        String s1= input.next();
        File file = new File(s);
        File file1 = new File(s1);
        boolean b = file.renameTo(file1);
        System.out.println(b);
    }
}
